<include file="./Tpl/Admin/header.html" />
<div class="main">
  <div class="main_title"> <img src="/Public/Admin/images/book1.gif"/>&nbsp;&nbsp;幻灯片管理 </div>
  <eq name="module" value="list">
    <div class="list_body">
      <table cellspacing=0 cellpadding=0 border=0>
        <tr>
          <th width="25%">链接地址</th>
          <th width="50%">图片</th>
          <th width="5%">排序</th>
          <th width="10%">操作</th>
        </tr>
        <volist name="list" id="vo">
          <tr>
            <td>{$vo.url|default='无'}</td>
            <td><img src="{$vo.img}" width="500"/></td>
            <td>{$vo.sort|default='0'}</td>
            <td><a href="?s=Admin/Flash/set/id/{$vo.id}">修改</a> <a href="?s=Admin/Flash/del/id/{$vo.id}">删除</a></td>
          </tr>
        </volist>
        <tr>
          <td colspan=4><input type="button" value="添加" class="btn" onclick="javascript:location.href='/?s=Admin/Flash/add'"></td>
        </tr>
      </table>
    </div>
    <else/>
    <div class="main_body">
      <form action="?s=Admin/Flash/update" method="post" enctype="multipart/form-data">
        <input type="hidden" name="id" value="{$id}"/>
        <table cellspacing=0 cellpadding=0 border=0>
          <tr>
            <td>地址</td>
            <td><input type="text" name="url" value="{$url}"/></td>
          </tr>
          <tr>
            <td>排序</td>
            <td><input type="text" name="sort" value="{$sort|default=0}"/></td>
          </tr>
          <tr>
            <td>图片</td>
            <td><input type="file" name="img"/>
              <notempty name="img"><img src="{$img}" width="200" height="50" style="vertical-align:middle;"> </notempty></td>
          </tr>
        </table>
        <div>
          <input type="submit" value="提交"/>
        </div>
      </form>
    </div>
  </eq>
</div>
<include file="./Tpl/Admin/footer.html" />
<script language="javascript" src="/Public/plugin/kindeditor/jquery.tools.min.js"></script>
<script language="javascript" src="/Public/plugin/kindeditor/kindeditor-min.js"></script>
<script language="javascript" src="/Public/plugin/kindeditor/zh_CN.js"></script>
<script language=javascript>
	var editor;
	KindEditor.ready(function(K) {
		editor = K.create('textarea[name="content"]', {
			resizeType : 1,
			allowPreviewEmoticons : false,
			allowImageUpload : true,
			items : [
				'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist', '|', 'image', 'link']
		});
	});
</script>
<script type="text/javascript">
	$(document).ready(function(e) {
        //打开子菜单
			$("#collapseFour").addClass("in");	
    });
</script>
